﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace td.Core
{
    public class AbstractPad:IPad,IDisposable
    {
        public event EventHandler TitleChanged;
        private  string title="";

        public void Dispose()
        {
             
        }
        public AbstractPad()
        {
        }
        
        public AbstractPad(string title)
        {
            this.title = title;
        }

        protected virtual void OnTitleChanged(EventArgs e)
        {
            if (this.TitleChanged != null)
            {
                this.TitleChanged(this, e);
            }
        }
        public virtual Image Icon { get; set; }
        public virtual string Title
        {
            get
            {
                return this.title;
            }
            set
            {
                if (!this.title.Equals(value))
                {
                    this.title = value;
                    this.OnTitleChanged(EventArgs.Empty);
                }
            }
        }

        public virtual DevExpress.XtraEditors.XtraUserControl ViewContentControl
        {
            get;
            set;
        }


        public virtual bool ShowAutoHideButton
        {
            get;
            set;
        }

        public virtual bool ShowCloseButton
        {
            get;
            set;
        }

        public virtual DevExpress.XtraBars.Docking.DockingStyle dockStyle
        {
            get;
            set;
        }


        public virtual Guid guid
        {
            get;
            set;
        }
    }
}
